﻿<UserControl x:Class="DocManagerControls.Controls.DynamicControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" MinHeight="16" MinWidth="30">
    <UserControl.Resources>

        <DataTemplate x:Key="CategorieTemplate">
            <StackPanel>
                <StackPanel><TextBlock Text="ID" /><TextBox Text="{Binding ID}" /></StackPanel>
                <StackPanel><TextBlock Text="Categoria" /><TextBox Text="{Binding Categoria}"/></StackPanel>
             </StackPanel>
        </DataTemplate>

        <DataTemplate x:Key="ComboTemplate">
            <ComboBox Height="23" Name="comboBox1" Width="120" >
                <ComboBoxItem>Ciao</ComboBoxItem>
            </ComboBox>
        </DataTemplate>
        
        <DataTemplate x:Key="NormalTemplate">
        </DataTemplate>
        
        <DataTemplate x:Key="StatusTemplateNormal" x:Name="mNormalImage">
            <Image Width="16" Height="16" Name="Image1" />
        </DataTemplate>

        <DataGridTemplateColumn Header="Date" MinWidth="100" x:Key="dataTemplCol">
        <DataGridTemplateColumn.CellEditingTemplate>
            <DataTemplate>
                <DatePicker SelectedDate="{Binding Date}" SelectedDateFormat="Short" />
            </DataTemplate>
        </DataGridTemplateColumn.CellEditingTemplate>
        <DataGridTemplateColumn.CellTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Date, StringFormat=d}" />
            </DataTemplate>
        </DataGridTemplateColumn.CellTemplate>
        </DataGridTemplateColumn>

    </UserControl.Resources>
    
    
    
   
</UserControl>
